| Conditions | 1 |
| Total Lines | 13 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import type { BemAbsraction } from "./bem.core"; |
||
| 10 | |||
| 11 | function classBeming< |
||
| 12 | Ctx extends {classnames: Source, className?: string}, |
||
| 13 | Source extends CssModule = Ctx["classnames"], |
||
| 14 | // WithClassName extends boolean = Ctx["className"] extends string ? true : false |
||
| 15 | >( |
||
| 16 | context: Ctx = EMPTY_OBJECT as Ctx |
||
| 17 | ) { |
||
| 18 | const {className} = context |
||
| 19 | //@ts-expect-error |
||
| 20 | const host = (arg0?, arg1?) => bem(context, arg0, arg1) |
||
| 21 | |||
| 22 | return wrapper(host, className) |
||
| 23 | } |
||
| 44 | } |